﻿@model prohomework.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}



@Styles.Render("~/Content/login.css")
<style>
    #pt {
        position: relative;
    }
</style>
<div class="row">

    <div class="col-sm-5 col-md-8 hidden-xs" style="overflow:hidden;">
        <img class="img-responsive" src="~/Images/login.gif" id="pt" />
    </div>

    <div class="col-sm-7 col-md-4">


        <div class="form-signin">

            @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)



                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder = "用户名/学号" })
                @Html.ValidationMessageFor(m => m.UserName)

                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = "密码" })
                @Html.ValidationMessageFor(m => m.Password)
                @*            <li>
                        @Html.CheckBoxFor(m => m.RememberMe)
                        @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
                    </li>*@
                <div class="checkbox">

                </div>
                <input class="btn btn-lg  btn-block" type="submit" value="登录" />
                @*
                    <p>
                        @Html.ActionLink("Register", "Register") if you don't have an account.
                    </p>*@
            }
        </div>
    </div>
</div>
    <script>
        $(document).ready(function (e) {
            if ($(window).outerWidth() < 1200) {
                $("#pt").css("left", "-60px");
            }
        })
    </script>
